import addAddressEditService from  '../services/addAddressEditService'
import {Toast} from 'antd-mobile'

export const getAddAddressEdit=(data,callBack)=>{
		Toast.hide();
		Toast.loading("", 30, () => Toast.info("网络错误", 2));
		 addAddressEditService.addAddressEdit(data).then(resultData => {
			Toast.hide();
			if(resultData.code==1000){
				 callBack(resultData.body);
			}else {
				Toast.info(resultData.msg,1)
			}
		},()=>{
			Toast.hide(); 
            Toast.info("系统繁忙，请稍后再试");
		})
}

